package com.huluobo.a2206douyindemo.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.huluobo.a2206douyindemo.R;
import com.huluobo.a2206douyindemo.utils.ImageUtils;
import com.huluobo.base.bean.GiftBeanResult;

/**
 * Created by LC on 2024/8/23.
 */
public class GiftAdapter extends BaseQuickAdapter<GiftBeanResult.GiftBean, BaseViewHolder> {
    public GiftAdapter() {
        super(R.layout.item_gift);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, GiftBeanResult.GiftBean giftBean) {
        ImageUtils.getInstance().loadImage(getContext(), giftBean.getGiftpath(),
                baseViewHolder.getView(R.id.item_gift_iv));
        baseViewHolder.setText(R.id.item_gift_price_tv, giftBean.getPrice() + "抖币");
    }
}
